Skip to content

Conversation

@malinajirka
Copy link
Contributor

@malinajirka malinajirka commented Oct 2, 2025

Description

This PR explicitly declares okhttp tls dependency to avoid java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Util; error during card reader connection flow.

This issue surfaced when we updated okhttp 4.9.0 -> 5.1.0 in #14587.

Steps to reproduce

  1. Open unpaid order
  2. Tap on Collect Payment
  3. Tap on Card Reader
  4. Turn on your card reader
  5. Notice "No reader connected" error is displayed

Testing information

  1. Open unpaid order
  2. Tap on Collect Payment
  3. Tap on Card Reader
  4. Connect and verify you can collect payment

The tests that have been performed

The above + TTP testing on production build

Images/gif

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@dangermattic
Copy link
Collaborator

dangermattic commented Oct 2, 2025

1 Warning
⚠️ This PR is assigned to the milestone 23.3. The due date for this milestone has already passed.
Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished.
1 Message
📖 This PR contains changes to RELEASE-NOTES.txt.
Note that these changes won't affect the final version of the release notes as this version is in code freeze.
Please, get in touch with a release manager if you want to update the final release notes.

Generated by 🚫 Danger

@malinajirka malinajirka changed the base branch from trunk to release/23.3 October 2, 2025 14:34
@malinajirka malinajirka added the feature: mobile payments Related to mobile payments / card present payments / Woo Payments. label Oct 2, 2025
@malinajirka malinajirka added this to the 23.3 milestone Oct 2, 2025
@kidinov kidinov self-requested a review October 2, 2025 14:36
@wpmobilebot
Copy link
Collaborator

Project dependencies changes

list
! Upgraded Dependencies
com.squareup.okhttp3:okhttp-tls:5.1.0, (changed from 4.12.0)
tree
-\--- project :libs:cardreader
-     \--- com.stripe:stripeterminal-taptopay:4.6.0
-          +--- com.squareup.okhttp3:okhttp-tls:4.12.0
-          |    +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.1.0 (*)
-          |    +--- com.squareup.okio:okio:3.6.0 -> 3.15.0 (*)
-          |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21 -> 1.9.24 (*)
-          \--- com.stripe:stripeterminal-internal-common:4.6.0
-               \--- com.squareup.okhttp3:okhttp-tls:4.12.0 (*)
++--- project :libs:fluxc
+     \--- com.squareup.okhttp3:okhttp-tls:5.1.0
+          +--- com.squareup.okhttp3:okhttp:5.1.0 (*)
+          +--- com.squareup.okio:okio:3.15.0 (*)
+          \--- org.jetbrains.kotlin:kotlin-stdlib:2.2.0 (*)
+\--- project :libs:cardreader
+     \--- com.stripe:stripeterminal-taptopay:4.6.0
+          +--- com.squareup.okhttp3:okhttp-tls:4.12.0 -> 5.1.0 (*)
+          \--- com.stripe:stripeterminal-internal-common:4.6.0
+               \--- com.squareup.okhttp3:okhttp-tls:4.12.0 -> 5.1.0 (*)

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commite369212
Direct Downloadwoocommerce-wear-prototype-build-pr14681-e369212.apk

@malinajirka malinajirka marked this pull request as ready for review October 2, 2025 14:46
@malinajirka malinajirka requested a review from a team as a code owner October 2, 2025 14:46
@kidinov kidinov self-assigned this Oct 2, 2025
@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commite369212
Direct Downloadwoocommerce-prototype-build-pr14681-e369212.apk

Copy link
Contributor

@kidinov kidinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Both TTP and IPP test well.

@malinajirka malinajirka merged commit dfc3c4a into release/23.3 Oct 2, 2025
22 checks passed
@malinajirka malinajirka deleted the betafix/fix-ipp-okhttp-bug branch October 2, 2025 15:10
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.50%. Comparing base (a2ebe1a) to head (e369212).
⚠️ Report is 3 commits behind head on release/23.3.

Additional details and impacted files
@@                Coverage Diff                 @@
##             release/23.3   #14681      +/-   ##
==================================================
- Coverage           38.50%   38.50%   -0.01%     
+ Complexity           9775     9774       -1     
==================================================
  Files                2066     2066              
  Lines              115514   115514              
  Branches            15390    15390              
==================================================
- Hits                44477    44476       -1     
  Misses              66906    66906              
- Partials             4131     4132       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: mobile payments Related to mobile payments / card present payments / Woo Payments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants